package com.bana.fvs.app.mvp.model;

import com.bana.fvs.app.mvp.ConstantsValue;
import com.bana.fvs.app.mvp.contract.NewVersionContract;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.HashMap;

/**
 *
 * Author : yanftch
 * Date   : 2018/3/1
 * Time   : 21:49
 * Desc   :
 */

public class NewVersionModel extends NewVersionContract.AbsNewVersionModel {

    @Override
    public void onStart() {

    }

    @Override
    public OkhttpRequest http_getNewVersion(String token, String versionName) {
        HashMap<String,Object> map = new HashMap<>();
        map.put(ConstantsValue.TOKEN,token);
        map.put(ConstantsValue.CURRVERSION,versionName);
        return okhttpRequest.url(iApiService.getNerVersion(map));
    }
}
